import Vue from "vue";
import Router from "vue-router";
Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/",
      component: () =>
        import("./views/login.vue")
    },
    {
      path: "/index",
      name: "index",
      component: () =>
        import("./views/index.vue")
    },
    {
      path: "/tabbar",
      name: "tabbar",
      component: () =>
        import("./components/tabbar.vue")
    },
    {
      path: "/snatchBills",
      name: "snatchBills",
      component: () =>
        import("./views/snatchBills.vue")
    },
    {
      path: "/user",
      name: "user",
      component: () =>
        import("./views/user.vue")
    },
    {
      path: "/publish",
      name: "publish",
      component: () =>
        import("./views/publish.vue")
    },
    {
      path: "/login",
      name: "login",
      component: () =>
        import("./views/login.vue")
    },
    {
      path: "/expense",
      name: "expense",
      component: () =>
        import("./views/expense.vue")
    },
    {
      path: "/status",
      name: "status",
      component: () =>
        import("./views/status.vue")
    },
    {
      path: "/register",
      name: "register",
      component: () =>
        import("./views/register.vue")
    },
    {
      path: "/updataPwd",
      name: "updataPwd",
      component: () =>
        import("./views/updataPwd.vue")
    },
    {
      path: "/snatchRecord",
      name: "snatchRecord",
      component: () =>
        import("./views/snatchRecord.vue")
    },
    {
      path: "/suggest",
      name: "suggest",
      component: () =>
        import("./views/suggest.vue")
    },
    {
      path: "/userInfo",
      name: "userInfo",
      component: () =>
        import("./views/userInfo.vue")
    },
  ]
});
